{extend name="index/index" /}
{block name="index"}

        <div class="tpl-content-wrapper">
            <div class="tpl-content-page-title">
                修改权限
            </div>
            <ol class="am-breadcrumb">
                <li><a href="{:url('admin/Index/index')}" class="am-icon-home">首页</a></li>
                <!-- <li><a href="#">表单</a></li> -->
                <li class="am-active">修改权限</li>
            </ol>
            <div class="tpl-portlet-components">
                <div class="portlet-title">
                    <div class="caption font-green bold">
                        <span class="am-icon-code"></span> 修改权限
                    </div>
                    <div class="tpl-portlet-input tpl-fz-ml">
                        <div class="portlet-input input-small input-inline">
                            <div class="input-icon right">
                                <i class="am-icon-search"></i>
                                <input type="text" class="form-control form-control-solid" placeholder="搜索..."> </div>
                        </div>
                    </div>


                </div>
                <div class="tpl-block ">

                    <div class="am-g tpl-amazeui-form" style="height:350px">


                        <div class="am-u-sm-12 am-u-md-9">
                            <form class="am-form am-form-horizontal" action="{:url('admin/Access/updata')}">
                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label">权限名</label>
                                    <div class="am-u-sm-9">
                                        <input type="hidden" id="user-name" name="id" value="{$data['id']}">
                                        <input type="text" id="user-name" name="title" placeholder="权限名" value="{$data['title']}">
                                    </div>
                                </div>
                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label">控制器名</label>
                                    <div class="am-u-sm-9">
                                        <input type="hidden" id="user-name" name="id" value="{$data['id']}">
                                        <input type="text" id="user-name" name="controll" placeholder="控制器名" value="{$data['controll']}">
                                    </div>
                                </div>
                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label">方法名</label>
                                    <div class="am-u-sm-9">
                                        <input type="hidden" id="user-name" name="id" value="{$data['id']}">
                                        <input type="text" id="user-name" name="func" placeholder="方法名" value="{$data['func']}">
                                    </div>
                                </div>

                                <div class="am-form-group">
                                    <label for="user-phone" class="am-u-sm-3 am-form-label">状态<span class="tpl-form-line-small-title"></span></label>
                                    <div class="am-u-sm-9">
                                        <select data-am-selected="{searchBox: 1}" name="status">
                                            <option value="1" {if condition="$data.status eq 1"}selected{/if}>激活</option>
                                            <option value="2" {if condition="$data.status eq 2"}selected{/if}>禁用</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="am-form-group">
                                    <div class="am-u-sm-9 am-u-sm-push-3">
                                        <input type="submit" class="am-btn am-btn-primary" value="保存">
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>

            </div>

        </div>

{/block}
